<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>编辑用户信息</title>
</head>
<body>
    <h2>编辑用户信息</h2>
    <c:if test="${not empty user}">
        <form action="editUser" method="post">
            <input type="hidden" name="id" value="${user.id}">
            姓名: <input type="text" name="name" value="${user.name}"><br>
            密码: <input type="password" name="password" value="${user.password}"><br>
            邮箱: <input type="text" name="email" value="${user.email}"><br>
            性别: <input type="text" name="gender" value="${user.gender}"><br>
            生日: <input type="date" name="birthday" value="${user.birthday}"><br>
            擅长语言: <input type="text" name="lans" value="${user.lans}"><br>
            <input type="submit" value="保存">
        </form>
    </c:if>
    <c:if test="${empty user}">
        <p>用户信息不存在！</p>
        <a href="userList">返回用户列表</a>
    </c:if>
</body>
</html>
